package cn.nuomi.shop.api.service.impl;

import cn.nuomi.shop.api.dao.GoodsDao;
import cn.nuomi.shop.api.dao.impl.GoodsDaoImpl;
import cn.nuomi.shop.api.entity.Goods;
import cn.nuomi.shop.api.service.GoodsService;

import java.util.List;

/**
 * @date: 2021/4/27 10:10
 * @description: 获取商品列表
 */
public class GoodsServiceImpl implements GoodsService {

    @Override
    public List<Goods> getGoodsList() {
        GoodsDao goodsDao = new GoodsDaoImpl();
        List<Goods> list = goodsDao.getGoods();
        return list;
    }

    @Override
    public List<Goods> getPhoneList() {
        GoodsDao goodsDao = new GoodsDaoImpl();
        List<Goods> list = goodsDao.getPhone();
        return list;
    }

    @Override
    public List<Goods> getIntelligenceList() {
        GoodsDao goodsDao = new GoodsDaoImpl();
        List<Goods> list = goodsDao.getIntelligence();
        return list;
    }


}
